<template>
  <div class="layout" :class="datas.cmpt_class || []" :style="datas.cmpt_style || {}">
    <div class="layout top" slotName="layout_top">
      <slot name="layout_top"></slot>
    </div>
    <div class="layout bottom" slotName="layout_bottom">
      <slot name="layout_bottom"></slot>
    </div>
  </div>
</template> <script>
export default {
  name: "layout",
  props: {
    datas: {
      type: Object,
      default() {
        return { cmpt_class: [], cmpt_style: {} };
      }
    }
  },
  data() {
    return {};
  }
};
</script> <style lang="less" scoped>
.top {
  min-height: 50px;
}
.bottom {
  min-height: 50px;
}
</style>